<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="form" acceptcharset="utf-8">
                <p:growl id="msg" life="3000"/>
                <h2>Determinação</h2>
                <p:panel  style="border: 0px; width: 100%">

                    <p:fieldset style="border: 0px; width: 100%">
                        <p class="subtitle">Todas as Correições Finalizadas</p>

                            <p:dataTable id="table" value="#{managerSearcheQuestionnaireResponse.lstQuestionnaireResponseFinnaly()}"
                                         var="q" emptyMessage="Nenhuma Correição">
                                <f:facet name="header">
                                    <h:outputText value="Correiçao"/>
                                </f:facet>

                                <p:column headerText="Executor" style="font-size: 12px; width: 250px;">
                                    <h:outputText value="#{q.executor.name}" style="font-size: 12px;"/>
                                </p:column>
                                  <p:column headerText="Cartório" style="font-size: 12px; width: 250px;">
                                      <h:outputText value="#{q.notaryOffice.nome}" style="font-size: 12px;"/>
                                </p:column>
                                <p:column headerText="Questionário" style="font-size: 12px; width: 200px;">
                                    <h:outputText value="#{q.questionnaire.titulo}" style="font-size: 12px;"/>
                                </p:column>
                                <p:column headerText="Data" style="font-size: 12px; width: 100px;">
                                    <h:outputText value="#{q.dateQ}" style="font-size: 12px;">
                                        <f:convertDateTime pattern="dd/MM/yyyy"/>
                                    </h:outputText>
                                </p:column>

                                <p:column headerText="Opções" style="font-size: 12px; width: 10px;">
                                    <!--<p:commandButton icon="ui-icon-folder-collapsed" actionListener="{managerEditExecutor.redirect('editExecutor.xhtml', e)}" title="Editar" />-->
                                    <p:commandButton icon="ui-icon-circle-zoomin" actionListener="#{managerRelQuestionnaireResponse.viewQuestionnaireResponse(q)}" update="@form"  title="Visualizar Respostas da Correição" />
                                    <p:commandButton icon="ui-icon-info" actionListener="#{managerRelDeterminations.viewDetermination(q)}" title="Determinação" update="@form"  />
                                </p:column>
                            </p:dataTable>

                    </p:fieldset>

                </p:panel> 


                <center>
                    <p:commandButton value="Voltar" icon="ui-icon-arrowreturnthick-1-w" style=" width: 80px;font-size: 12px; font-family: sans-serif;" actionListener="#{managerRedirect.redirect('eyre.xhtml')}" immediate="true"/>

                </center>
            </h:form>
        </ui:define>
    </ui:composition>
</html>


